package com.d0317;

public class DeamonThreadTest {
    public static void main(String[] args) {
        DeamonThead deamonThead=new DeamonThead();
        deamonThead.setDaemon(true);//守护线程
        deamonThead.start();
    }


}
class DeamonThead extends Thread{
    @Override
    public void run() {
        while (true){
            System.out.println("线程正在执行");
        }
    }
}
